# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-crytic-compile
_pkgname=crytic-compile
pkgver=0.3.10
pkgrel=1
pkgdesc='Library to help smart contract compilation.'
arch=('any')
url='https://pypi.org/project/crytic-compile/#files'
license=('GPL3')
depends=('python' 'python-pysha3' 'python-cbor2' 'python-pycryptodome')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('c3a3d1aee94aef8e6ab5f55e7ff1d65c96b051d48dfee93a7f4df6415f7691835a6a44b3ec2fbb6048acb52c096a99fa68a62f960e8eb5a21471fa0a946abfe2')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

